<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:65:"E:\WWW\waimai/app/admin/wechat\view\wechat_pay_setting\index.html";i:1501063568;s:53:"E:\WWW\waimai/app/admin/index\view\template\base.html";i:1495522842;}*/ ?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link href="__STATIC__/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <!--图标字体元件库-->
    <link rel="stylesheet" href="__STATIC__/plugins/font-awesome4.5.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="__STATIC__/admin/css/AdminLTE.min.css">
    <link rel="stylesheet" href="__STATIC__/admin/css/jquery.datetimepicker.css">
    <link rel="stylesheet" href="__STATIC__/admin/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="__STATIC__/plugins/validform/5.3.2/css/Validateform_v5.3.2.css">

    <link rel="stylesheet" href="__STATIC__/plugins/bootstrap-table/bootstrap-table.min.css">
    <link rel="stylesheet" href="__STATIC__/plugins/iCheck/polaris/polaris.css">
    <link rel="stylesheet" href="__STATIC__/plugins/iCheck/futurico/futurico.css">
    <link rel="stylesheet" href="__STATIC__/plugins/iCheck/line/_all.css">
    <link rel="stylesheet" href="__STATIC__/plugins/iCheck/square/_all.css">
    <link rel="stylesheet" href="__STATIC__/plugins/iCheck/flat/_all.css">
    <link rel="stylesheet" href="__STATIC__/plugins/iCheck/minimal/_all.css">
    
<style>
    .title{text-align: center;padding: 10px;font-weight: bold;font-size: 18px}
</style>


    <title><?php echo \think\Config::get('site.title'); ?></title>
    

    <script src="__STATIC__/plugins/jquery/jquery-3.0.0.min.js"></script>
    <script src="__STATIC__/plugins/bootstrap/js/bootstrap.min.js"></script>
    <script src="__STATIC__/admin/js/app.min.js"></script>
    <script src="__STATIC__/admin/extend/app.js"></script>

    <script src="__STATIC__/admin/extend/H-ui.admin.js"></script>
    <script src="__STATIC__/plugins/layer3.0.3/layer.js"></script>
    <script src="__STATIC__/plugins/validform/5.3.2/Validform_v5.3.2_min.js"></script>

    <script src="__STATIC__/plugins/bootstrap-table/bootstrap-table.min.js" type="text/javascript"></script>
    <script src="__STATIC__/plugins/bootstrap-table/bootstrap-table-zh-CN.js" type="text/javascript"></script>

    <script src="__STATIC__/plugins/iCheck/icheck.min.js"></script>
    <script>

        var admin_menu_data=<?php if(isset($admin_menu)): ?><?php echo $admin_menu; endif; ?>;
        $(function () {
            $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
                checkboxClass: 'icheckbox_minimal-blue',
                radioClass: 'iradio_minimal-blue'
            });
        })
    </script>

    
</head>
<body class="hold-transition skin-blue-light sidebar-mini">
    
<div class="wrapper">
    <div class="panel panel-default" style="margin: 20px">
        <div class="panel-heading">
            设置支付参数
        </div>
        <div class="panel-body">
            <form class="form-horizontal" id='form'  action="<?php echo \think\Request::instance()->baseUrl(); ?>">
                <div class="box-body">

                    <div class="form-group">
                        <label class="col-sm-3 control-label">身份识别</label>
                        <div class="col-sm-6">
                            <input type="text" class="form-control" placeholder="" name="app_id" value="<?php echo isset($data['app_id']) ? $data['app_id'] :  ''; ?>">
                        </div>
                        <div class="col-xs-3 col-ms-3"></div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">身份密钥</label>
                        <div class="col-sm-6">
                            <input type="text" class="form-control" placeholder="" name="secret" value="<?php echo isset($data['secret']) ? $data['secret'] :  ''; ?>">
                        </div>
                        <div class="col-xs-3 col-ms-3"></div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">微信支付商户号(MchId)</label>
                        <div class="col-sm-6">
                            <input type="text" class="form-control" placeholder="" name="mch_id" value="<?php echo isset($data['mch_id']) ? $data['mch_id'] :  ''; ?>">
                        </div>
                        <div class="col-xs-3 col-ms-3"></div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">商户支付密钥(API密钥)</label>
                        <div class="col-sm-6">
                            <input type="text" class="form-control" placeholder="" name="api_key" value="<?php echo isset($data['api_key']) ? $data['api_key'] :  ''; ?>">
                        </div>
                        <div class="col-xs-3 col-ms-3"></div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-9 col-sm-offset-3">
                            <button type="submit" class="btn btn-primary radius">&nbsp;&nbsp;提交&nbsp;&nbsp;</button>
                            <button type="button" class="btn btn-default radius ml-20" onclick="layer_close();">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>


</div>

</body>
<script src="__STATIC__/admin/js/skins_control.js"></script>
<script src="__STATIC__/admin/js/jquery.datetimepicker.js"></script>

<script>
    $("#form").Validform({
        tiptype:2,
        showAllError:true,
        ajaxPost: true,
        callback: function (res) {
            if (res.success == true){
                layer.msg(res.message, {time: 1000},function () {
                    layer_close();
                });
            }
        }
    });
</script>

</html>